﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="ConfigurationSchema"
    targetNamespace="http://cslauncher.codeplex.com"
    xmlns="http://cslauncher.codeplex.com"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
  elementFormDefault="qualified"
>
  <xs:element name="CSLauncher">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="MenuRoot" type="SubMenu" />
      </xs:sequence>
      <xs:attribute name="version" type="xs:int" />
    </xs:complexType>
  </xs:element>
  
  <xs:complexType name="SubMenu">
    <xs:sequence maxOccurs="9">
      <xs:choice>
        <xs:element name="SubMenu" type="SubMenu"/>
        <xs:element name="RunApplication" type="RunApplication"/>
      </xs:choice>
    </xs:sequence>
    <xs:attribute name="name" use="required" />
  </xs:complexType>
  
  <!-- Commands -->
  <xs:complexType name="RunApplication">
    <xs:attribute name="name" use="required"/>
    <xs:attribute name="location" use="required"/>
    <xs:attribute name="arguments" use="optional" default=""/>
  </xs:complexType>
  
</xs:schema>
